package com.bfsuol.common.util;

import org.hibernate.dialect.MySQL5Dialect;
import org.hibernate.dialect.function.SQLFunctionTemplate;
import org.hibernate.type.StringType;

public class MySQLExtendDialect  extends MySQL5Dialect{
	public MySQLExtendDialect(){
		super();
		registerFunction("convert_gbk", new SQLFunctionTemplate(new StringType(), "convert(?1 using gbk)") );
	}
}
